package com.qf.feign;

import com.qf.entity.City;
import com.qf.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("MICRO-CITY")
public interface CityFeign {

    @RequestMapping("/city/list")
    R<List<City>> list();

    @RequestMapping("/city/insert")
    R<Boolean> insert(@RequestBody City city);

    @RequestMapping("/city/getById")
    public R<City> queryCity(@RequestParam Integer cid);
}
